package day8;

public class Airliner extends Plane {
    private int seat;

    public Airliner(double weight, double height, int seat) {
        super(weight, height);
        this.seat = seat;
    }

    public int getSeat() {
        return seat;
    }

    public void setSeat(int seat) {
        this.seat = seat;
    }
    public void showinfo(){
        super.showinfo();
        System.out.println("座位数"+getSeat()+"个！");
    }

}
